package com.celestial.Domain.PO;

import lombok.Data;
import org.springframework.data.neo4j.core.schema.Property;
import org.springframework.data.neo4j.core.schema.RelationshipId;
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
import org.springframework.data.neo4j.core.schema.TargetNode;

@RelationshipProperties
@Data
public class RelationProperty<T> {

    @RelationshipId
    private Long elementId;

    @TargetNode
    private T targetNode;

    @Property
    private String relationshipProperty;
}
